package kr.hkit.powerjava.chapter08;

public class Box {
	private int width, length, height;

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}
	
	public int getVolume(){
		//부피 계산
		int vol = width * length * height;
		return vol;
	}
	
	public void print(){
		System.out.println("Box [width=" + width + ", length=" + length + ", height="
				+ height + "]");
	}
}
